package com.zmwx.subject.domain.convert;

import com.zmwx.subject.domain.entity.SubjectInfoBO;
import com.zmwx.subject.domain.entity.SubjectOptionBO;
import com.zmwx.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoBOConvert {
    SubjectInfoBOConvert INSTANCE = Mappers.getMapper(SubjectInfoBOConvert.class);

    // @Mapping(target="serialVersionUID",ignore  = true)
    //SubjectInfo subjectBOTOSubject(SubjectInfoBO subjectInfoBO);


    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertOptionToBo(SubjectOptionBO subjectOptionBO);

    SubjectInfoBO convertOptionAndInfoToBo(SubjectOptionBO subjectOptionBO, SubjectInfo subjectInfo);

    List<SubjectInfoBO> convertListInfoToBO(List<SubjectInfo> subjectInfoList);


}
